﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Award.aspx.cs" Inherits="ProjectSem40701.Admin.Award" %>
<%@ Register assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
        <title>Quản lí giải thưởng</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
        <li><a href="AwardAdd.aspx" class="report">Thêm mới giải thưởng</a></li>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--
        set tab active here
     -->
    <script type="text/javascript" language="javascript">
        setTab(document.getElementById("2"));
    </script>
    <!--
        end set tab active
     -->
     <div id="box">
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <h3>Quản lí giải thưởng</h3>
        
         <telerik:RadGrid ID="rgrAward" runat="server" AllowFilteringByColumn="True" 
             AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
             AllowPaging="True" AllowSorting="True" GridLines="None">
<MasterTableView CellSpacing="-1" DataKeyNames="AwardID" DataSourceID="ObjectDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="AwardName" HeaderText="Tên giải thưởng" 
            SortExpression="AwardName" UniqueName="AwardName">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn DataField="AwardDescription" 
            HeaderText="Mô tả giải thưởng" SortExpression="AwardDescription" 
            UniqueName="AwardDescription">
            <ItemTemplate>
                <asp:Label ID="AwardDescriptionLabel" runat="server" 
                    ondatabinding="AwardDescriptionLabel_DataBinding" 
                    Text='<%# Eval("AwardDescription") %>'></asp:Label>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:TextBox ID="AwardDescriptionTextBox" runat="server" 
                    Text='<%# Bind("AwardDescription") %>'></asp:TextBox>
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="AwardStatus" HeaderText="Trạng thái" 
            SortExpression="AwardStatus" UniqueName="TemplateColumn">
            <ItemTemplate>
                <asp:Label ID="lblStatus" runat="server" ondatabinding="lblStatus_DataBinding" 
                    Text='<%# Eval("AwardStatus") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="TemplateColumn1" AllowFiltering="False">
            <ItemTemplate>
                <asp:HyperLink ID="Xem" runat="server" 
                    NavigateUrl='<%# Eval("AwardID", "AwardEdit.aspx?AwardID={0}") %>'>Xem</asp:HyperLink>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" Width="80px" />
        </telerik:GridTemplateColumn>
    </Columns>
</MasterTableView>
         </telerik:RadGrid>
        
         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
             OldValuesParameterFormatString="original_{0}" 
             SelectMethod="Get_tbl_Award_Select_All" 
             TypeName="ProjectSem40701.Admin.AdminXSD.AwardTableAdapters.tbl_AwardTableAdapter">
         </asp:ObjectDataSource>
        
     </div>
</asp:Content>
